<?
/**
 *  
 * 
 * @package  iforum.service
 * @author   iCer <iCer@justdn.com>
 * @version  $Id: newthreadformService.php,v 1.1 2005/04/06 04:07:55 icer Exp $
 */
import("izz.service.RetrieveService");


class newthreadformService extends RetrieveService
{

	function execute()
	{
		$context = Singleton::instance('iForumWebAppContext');
		$request = &$context->getRequest();
		$forumid = &$request->getParameter('fid');

		$daofactory = $context->getDaoFactory();
		$fdao = $daofactory->getForumDAO();
		$forum = $fdao->getForum($forumid);		

		$result['forum'] = $forum;		
		
		$this->_result = $result;
		return true;
	}
}

?>